#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
int main()
{
	string num1("123");
	string num2("234");
    int end1 = num1.size() - 1, end2 = num2.size() - 1;
    int d = 0, sum = 0;
    int x = -1;
    string st;
    while (end1 >= 0 || end2 >= 0)
    {
        int value1 = 0, value2 = 0;
        if (end1 >= 0)
        {
            value1 = num1[end1--] - '0';
            x++;
            while (end2 >= 0)
            {
                value2 = num2[end2--] - '0';
                sum = value1 * value2 + d;
                d = sum / 10;
                sum %= 10;
            }
                
        }
        st += ((sum * pow(10, x)) + '0');
    }
    reverse(st.begin(), st.end());
    cout << st << endl;
	return 0;
}